const tokenKey = "tokenKey"
const clientidKey = "clientidKey"
const popuIdKey = "PopuKey"
const roleKey = "roleKey"
// 对token的存储
export const setToken = (val)=>{
	uni.setStorageSync(tokenKey,val)
}
export const getToken = ()=>{
	return uni.getStorageSync(tokenKey)
}
export const removeToken = ()=>{
	return uni.removeStorageSync(tokenKey)
}
// 对clicent的存储
export const setClientid = (val)=>{
	uni.setStorageSync(clientidKey,val)
}
export const getClientid = ()=>{
	return uni.getStorageSync(clientidKey)
}
export const removeClientid = ()=>{
	return uni.removeStorageSync(clientidKey)
}
// 对弹框的状态进行存储
export const setPopu = (val)=>{
	return uni.setStorageSync(popuIdKey,val)
}
export const getPopu = ()=>{
	return uni.getStorageSync(popuIdKey) || []
}
export const removePopu = ()=>{
	return uni.removeStorageSync(popuIdKey)
}
// 存储角色
export const setSaveRole = (val)=>{
	return uni.setStorageSync(roleKey,val)
}
export const getSaveRole = (val)=>{
	return uni.getStorageSync(roleKey)
}
export const removeSaveRole = ()=>{
	return uni.removeStorageSync(popuIdKey)
}